{% extends "enterprise/base.html" %}

{% block css %}
{% endblock %}

{% block content %}
    <script type="text/javascript">
        var primary_menu = "menu_2";
        var sub_menu = "menu_2_2";
    </script>
    <div class="col-md-12">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <div class="panel-title"><h3>贮罐区</h3></div>
                <div class="panel-options">
                    <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
                    <!--<a href="#" data-rel="reload"><i class="entypo-arrows-ccw"></i></a>-->
                </div>
                <div class="stay_right">
                    {% if not sa.app_status %}
                       <a href="/facilities/storageAreaEdit/{{ sa.id }}" class="btn btn-info">修改</a>
                    {% endif %}
                </div>
            </div>
            <div class="panel-body with-table">

            <form>
                <table class="input_in table-detail">
                    <tr>
                        <th width="200">贮罐区名称</th>
                        <td>{{ sa.name }}</td>
                    </tr>
                    <tr>
                        <th>贮罐区描述</th>
                        <td>{{ sa.desc }}</td>
                    </tr>
                </table>
            </form>
            </div>
        </div>
    </div>
<!--     <div class="col-md-12">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <div class="panel-title"><h3>贮罐单元</h3></div>
                <div class="panel-options">
                    <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
                    <!--<a href="#" data-rel="reload"><i class="entypo-arrows-ccw"></i></a>-->
              <!--   </div>
                <div class="stay_right">
                    {% if not sa.app_status %}
                    <a href="/facilities/storageAdd/{{ sa.id }}" class="bg btn btn-info">
                        添加贮罐单元
                    </a>
                    {% endif %}
                </div> -->
                <!-- <div class="stay_right">
                    <a href="/facilities/storageAdd" class="btn btn-success">添加</a>
                </div> -->
<!--             </div>
            <div class="panel-body with-table">
                <table class="table table-bordered table-responsive">
                    <thead>
                    <tr>
                        <th>序号</th>
                        <th>贮存物料名称</th>
                        <th>对应产品</th>
                        <th>贮藏形势</th>
                        <th>有无氮封</th>
                        <th>贮罐规格</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                        {% for st in sts %}
                            <tr>
                                <td>{{ forloop.counter }}</td>
                                <td>{{ st.name }}</td>
                                <td>{{ st.to_product }}</td>
                                <td>{{ st.mode }}</td>
                                <td>{{ st.nitrogen_sealed }}</td>
                                <td>{{ st.para }}</td>
                                <td>
                                    <a href="/facilities/storageDetail/{{ st.id }}" class="btn btn-success">查看</a>
                                    {% if not sa.app_status %}
                                    <a href="/facilities/storageEdit/{{ st.id }}" class="btn btn-info">修改</a>
                                    <a onclick="beforeDelete('/facilities/storageDel/{{ st.id }}')" href="javascript:;" class="btn btn-danger">删除</a>
                                    {% endif %}
                                </td>
                            </tr>
                        {% empty %}
                            <tr>
                                <td colspan=7 style='text-align:center;'>暂无数据</td>
                            </tr>
                        {% endfor %}
                    </tbody>
                </table> -->
   <!--              <div class="row">
                    <div class="col-xs-6 col-left">
                        <div class="dataTables_info" id="table-3_info"></div>
                    </div>
                    <div class="col-xs-6 col-right">
                        <div class="dataTables_paginate paging_bootstrap" style="text-align: right;margin-right: 10px">
                            <ul class="pagination pagination-sm" >
                                {% if sts.has_previous %}
                                    <li><a href="?page={{ sts.previous_page_number }}">上一页</a></li>
                                {% else %}
                                    <li class="disabled"> <span>上一页</span></li>
                                {% endif %}
                                {% for p in paginator.page_range %}
                                    {% ifequal p sts.number %}
                                        <li class="active"> <span class="p">{{p}}</span></li>
                                    {% else%}
                                        <li> <a href="?page={{ p }}">{{p}}</a></li>
                                    {% endifequal %}
                                {% endfor %}
                                {% if sts.has_next %}
                                    <li class="next">  <a href="?page={{ sts.next_page_number }}">下一页</a></li>
                                {% else %}
                                    <li class="disabled"><span>下一页</span></li>
                                {% endif %}
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div> --> -->

{% endblock %}

{% block js %}
    
{% endblock %}